package com.xueyi.aixihu.constant;

/**
 * 描述 二级审核的类
 *
 * @auther 俞烨
 * @date 2023-06-28 17
 */
public class TwoLevelAuditConstant {


    public static String findPlanStr(Integer status) {
        if (status == null) {
            return "状态为null";
        } else if (status == 0) {
            return "已提交审核";
        } else if (status == 1) {
            return "审核中";
        } else if (status == 2 || status == 4 || status == 101) {
            return "驳回";
        } else if (status == 3 || status == 100) {
            return "已通过";
        } else if (status == -1) {
            return "草稿";
        } else if (status == 99) {
            return "已公开";
        } else {
            return "状态错误";
        }
    }

    /**
     * 提交审核，等待审核
     */
    public static final Integer SUBMIT_AUDIT = 0;
    /**
     * 一级同意审核
     */
    public static final Integer ONE_CONSENT = 1;
    /**
     * 二级同意审核
     */
    public static final Integer TWO_CONSENT = 3;
    /**
     * 一级拒绝同意
     */
    public static final Integer ONE_FAIL = 2;
    /**
     * 二级拒绝同意
     */
    public static final Integer TWO_FAIL = 4;
    /**
     * 草稿
     */
    public static final Integer DRAFT = -1;
    /**
     * 已发布
     */
    public static final Integer PUBLIC = 99;


}
